package com.niiwoo.civet.trade.enums;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author: wuke
 * @Description: 1退回资料、2退回金额
 * @Date: Created in 12:15 2018/4/26
 */
@AllArgsConstructor
@Getter
public enum AuditReturnTypeEnum {

    BACK_MATERIAL((byte)1,"退回资料"),
    BACK_AMOUNT((byte)2,"退回金额");

    private Byte value;
    private String name;


    public static AuditReturnTypeEnum enumOf(byte value) {
        for (AuditReturnTypeEnum auditReturnTypeEnum : values()) {
            if (auditReturnTypeEnum.value.equals(value)) {
                return auditReturnTypeEnum;
            }
        }
        return null;
    }
}
